<!-- 输入域 -->
<template lang="html">
  <el-input
    v-model="defaultValue[field.prop]"
    type="textarea"
    v-bind="textareaAttrs"
    :placeholder="placeholder"
    @blur="blur"
    @focus="focus"
    @change="change"
  >
  </el-input>
</template>

<script>
let textareaOpt = require('../common/index').default('input')
export default Object.assign(textareaOpt, {
  mixins: [{
    data () {
      const {
        textareaAttrs = {},
        placeholder = '请输入内容'
      } = this.field
      return {
        placeholder,
        textareaAttrs
      }
    }
  }]
})
</script>
